home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_objc.idb / usr / freeware / include / cakit / ccomplex.h.z / ccomplex.h
Encoding:
C/C++ Source or Header  |  1999-07-16  |  844 b   |  64 lines

  1.  
  2. /*
  3.  * Computer Algebra Kit (c) 1993,98 by Comp.Alg.Objects.  All Rights Reserved.
  4.  * $Id: ccomplex.h,v 1.1.1.1 1999/03/22 21:48:43 stes Exp $
  5.  */
  6.  
  7. #ifndef __CACOMPLEX_HEADER__
  8. #define __CACOMPLEX_HEADER__
  9.  
  10. #include "cobject.h"
  11.  
  12. @interface Complex : CAObject
  13. {
  14.   id real;
  15.   id imaginary;
  16. }
  17.  
  18. + real:aReal;
  19. + real:aReal imaginary:anotherReal;
  20. - copy;
  21. - deepCopy;
  22. - clear;
  23.  
  24. - real;
  25. - imaginary;
  26. - (BOOL) isReal;
  27. - (BOOL) notReal;
  28. - (unsigned) hash;
  29. - (BOOL) isEqual:b;
  30.  
  31. - conjugate;
  32. - norm;
  33. - asReal;
  34.  
  35. - zero;
  36. - (BOOL) isZero;
  37. - (BOOL) isOpposite:b;
  38. - negate;
  39. - double;
  40. - add:b;
  41. - subtract:b;
  42.  
  43. - I;
  44. - one;
  45. - (BOOL) isOne;
  46. - (BOOL) isMinusOne;
  47. - (BOOL) isUnit;
  48. - square;
  49. - multiply:b;
  50. - power:(int)n;
  51.  
  52. - divide:b;
  53. - inverse;
  54. - quotient:b;
  55. - remainder:b quotient:(id *)q;
  56.  
  57. - gcd:b;
  58.  
  59. - printOn:(IOD)aFile;
  60. @end
  61.  
  62. #endif                /* __CACOMPLEX_HEADER__ */
  63.  
  64.